package com.goven.server.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.goven.server.dto.AccountDto;
import com.goven.server.server.IAccountServer;

@RestController
public class AccountController {
	
	@Autowired
	IAccountServer accountServer;
	@RequestMapping("/account/add")
	public String add(AccountDto param){
		int result=accountServer.add(param);
		return result==1?"success":"faild";
	}

}
